/**
 * Created by Peter on 2016/4/25.
 */

define(['jquery'], function () {
    return {
        getLocal: function (key) {
            return localStorage.getItem(key);
        },
        setLocal: function (key, value) {
            localStorage.setItem(key, value);
        },
        hasLocal: function (key) {
            if (this.getLocal(key) != null) {
                return true;
            }
            return false;
        },
        clearLocal: function (key) {
            localStorage.removeItem(key);
        }
    };
});
